<div id="left_view">
    <?php
	$view_left = '<div class="box_item"><div class="title" style="background:url(images/dmsp.jpg) no-repeat left">DANH MỤC SẢN PHẨM</div><img src="images/line-left.jpg" alt="line left" />';
	$m_left = $tc->menu(3,3);
	while($row_left = mysql_fetch_array($m_left)){
		$view_left .= '<a href="'.$row_left['url'].'" title="'.$row_left['title'].'" class="item" style="background:url('.url_danhmuc_image.$row_left['url_hinh'].') no-repeat left"><h3>'.$row_left['name'].'</h3></a>';
	}
	$view_left .= '</div>';/*DANH MUC SAN PHAM*/
	$banner = $tc->slider_banner(2);
	if(mysql_num_rows($banner) > 0){
		$view_left .= '<div class="box_item">';
		while($row_banner = mysql_fetch_array($banner)){
			$view_left .= '<a href="'.$row_banner['link'].'" title="'.$row_banner['name'].'"><img class="img" src="'.url_slider_image.$row_banner['url_hinh'].'" alt="'.$row_banner['name'].'" /></a>';
		}
		$view_left .= '</div>';
	}
	
	$m_left = $tc->menu(0,3);
	while($row_left = mysql_fetch_array($m_left)){
		$view_left .= '<div class="box_item"><div class="title" style="background:url('.url_danhmuc_image.$row_left['url_hinh'].') no-repeat left">'.$row_left['name'].'</div><img src="images/line-left.jpg" alt="line left" />';
		$sub_left = $tc->menu($row_left['id'],3);
		while($row_sub_left = mysql_fetch_array($sub_left)){
			$view_left .= '<a href="'.$row_sub_left['url'].'" title="'.$row_sub_left['title'].'" class="item1" style="background:url('.url_danhmuc_image.$row_sub_left['url_hinh'].') no-repeat left"><h3>'.$row_sub_left['name'].'</h3></a>';
		}
		$view_left .= '</div>';
	}
	
	$view_left .= '<div class="box_item"><div class="title" style="background:url(images/thong-tin-bai-viet.jpg) no-repeat left">THÔNG TIN BÀI VIẾT</div><img src="images/line-left.jpg" alt="line left" />';
	$info = $tc->home_info();
	while($row_info = mysql_fetch_array($info)){
		$view_left .= '<div class="item3"><a href="'.$tc->link_detail($row_info['menu_id']).$row_info['name_rewrite'].'.html" title="'.$row_info['name'].'"><img src="'.url_detail_thumb_image.$row_info['url_hinh'].'" alt="'.$row_info['name'].'" /><h3>'.$row_info['name'].'</h3></a></div>';
	}
	$view_left .= '</div>';/*THONG TIN BAI VIET*/
	echo $view_left;
	?>
</div>